function new_lines = re_parallel_lines(lines)
temp1 = lines(:,1);
temp2 = lines(:,7);
flag = temp1>temp2;
new_lines = lines;
temp = [lines(flag,7:12),lines(flag,1:6)];
new_lines(flag,1:12) = temp;